home *** CD-ROM | disk | FTP | other *** search
-
-
- LIFE
-
-
- This program is based on the John Conway's Game of Life, a model of
- cellular life. It operates in the 160 x 100 sixteen color graphics mode;
- therefore, you must have the color graphics board and a color monitor.
- This mode is not supported by BIOS or documented in the IBM Technical
- Reference Manual. I have only run this program under DOS 2.0, however it
- may also work under other versions.
-
- The screen is initialized with a random pattern of lit pixels. Each
- lit pixel on the screen represents a living cell. A cell is surrounded
- by eight other cells, in three directions: diagonally, horoizontally, and
- vertically. In each generation cells die and grow simultaneously. A
- cell dies from over population if it is surrounded by more than 3 living
- cells. It will also die of isolation if it has less than 2 cells
- surrounding it. New cells can be formed only in empty pixels if and only
- if it has 3 cells around it. The edges of the screen logically wrap
- around to their opposite sides, for example, three of the neighboring
- cells of a cell on the extreme right side of the screen will be found on
- the extreme left side of the screen.
-
- The color of a pixel determines how old it is. A new cell will be
- bright blue. It will then progress through the following colors: bright
- green, bright cyan, bright red, bright magenta, bright yellow, bright
- white, blue, green, cyan, red, magenta, yellow, and white. After a cell
- turns white, it will turn bright blue again.
-
- Eventually, after at least twenty minutes, the growth pattern of the
- cells will become recursive. However, if you can't wait that long, just
- press any key and the program will terminate.
-
-
- Phil Suematsu
- 329 South Merelet Lane
- Orange, CA 92669
- (714) 633-0876
-
-